import request from '@/utils/request'

// 查询查询命令一级列表
export function buildSelectSQLs(query) {
  return request({
    url: '/conf/BiSqlFirstField/buildSelectSQLs?ids='+query,
    method: 'get',
    // params: query
  })
}
// 查询查询命令一级列表
export function queryData(query) {
  return request({
    url: '/conf/BiSqlFirstField/queryData',
    method: 'get',
    params: query
  })
}

// 查询查询命令一级列表
export function listBiSqlFirstField(query) {
  return request({
    url: '/conf/BiSqlFirstField/list',
    method: 'get',
    params: query
  })
}
// 查询查询命令一级详细
export function getBiSqlFirstField(id) {
  return request({
    url: '/conf/BiSqlFirstField/' + id,
    method: 'get'
  })
}

// 新增查询命令一级
export function addBiSqlFirstField(data) {
  return request({
    url: '/conf/BiSqlFirstField',
    method: 'post',
    data: data
  })
}
// 新增查询命令一级
export function createTableInfo(data) {
  return request({
    url: '/conf/BiSqlFirstField/createTableInfo',
    method: 'post',
    data: data
  })
}
// 修改查询命令一级
export function updateBiSqlFirstField(data) {
  return request({
    url: '/conf/BiSqlFirstField',
    method: 'put',
    data: data
  })
}

// 删除查询命令一级
export function delBiSqlFirstField(id) {
  return request({
    url: '/conf/BiSqlFirstField/' + id,
    method: 'delete'
  })
}
